package com.lm.easy.controller;

import com.lm.easy.service.RuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/rule")
public class RuleController {

    @Autowired
    private RuleService ruleService;

    @GetMapping("/check")
    public String check(@RequestParam int age) {
        ruleService.executeRules(age);
        return "规则已执行 ✅";
    }
}